home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: Ports.dopus5 1.2 (10.8.98)
- Show all system message ports in an DirectoryOpus requester
- */
-
- parse arg portname function source dest arguments .
- address value portname
- options results
-
- if function = 'init' then do
- dopus command "Ports" program "Ports" desc "'Display all system message ports'"
- exit
- end
-
- lf = '0a'x
- port = ''
- names = SHOW(ports,,'^')
-
- do while names ~= ""
- parse var names currport "^" names
- if left(currport,4) = '|WSH' then currport = '<'||substr(currport,2)||'>'
- port = port||currport||lf
- end
- port = "Message Ports:"||lf||lf||port
- dopus request '"'port'" Ok'
- exit
-
-